Skip to content

Conversation

@widlarizer
Copy link

#225 except -T behaves just fine with clang so we don't have to mess with that. Also renamed references to GCC to CC

jrtc27 and others added 3 commits September 20, 2023 13:57
It's unnecessary and non-portable; Clang doesn't even implement that
part of GNU C.

(cherry picked from commit 50d75cb)
Clang only supports register variables when declared at global scope
(and only for non-allocatable registers, which is fine for tp), so move
thread_pointer. This does not make thread_pointer visible outside the
translation unit, it merely acts as a C alias for tp, so the semantics
remain unchanged.

(cherry picked from commit 20378c0)
Copy link
Collaborator

@aswaterman aswaterman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you verify this all still works with GCC?

I think the replacement of RISCV_GCC with RISCV_CC is a little too ideological for a PR whose purpose is to fix things, but I guess it's OK.

@widlarizer
Copy link
Author

I can't address this immediately but I hope to play with riscv-tests some more next week and let you know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants